<%= javascript_include_tag 'validationFunctions' %>
<SCRIPT> var a = new Array(); </SCRIPT>
<% i=0 %>
(Udziel od <%=min=question.closedquestion.min_answers %> do <%=max=question.closedquestion.max_answers%> odpowiedzi)
<% for possibleAnswer in question.closedquestion.cqpossibleanswers %>		
							
	<p style="padding-left: 15px;">
		
		<% @name ="[closedAnswers]["<<((possibleAnswer.id).to_s ) <<"]" %>			
		<%= check_box_tag @name, "y",false %>
                <%= possibleAnswer.possibleAnswer %>
		<SCRIPT>a[<%=i%>]= "<%="_closedAnswers_"<<possibleAnswer.id.to_s%>"</SCRIPT>
	</p>
	
					
	<% i=i+1 %>			 	
<% end %>	

<script type="text/javascript">
		var group = new Array()
		for(var count = 0 ; count <a.length ; count++)
			group[count]=document.getElementById(a[count]);;
		checkboxlimit(group,<%=min%>,<%=max%>);
</script>